<?php
/*
	f captcha.	v 0.1.	a corrie
	func for captcha validate action.
*/
function checkcode(){
	if(isset($_SESSION['securimage_code_value']) && !empty($_SESSION['securimage_code_value'])){
		if($_SESSION['securimage_code_value'] == strtolower(trim($code))){
			$_SESSION['securimage_code_value'] = '';
			return true;
		}else{
			return false;
		}
	}else{
		return false;
	}
}
?>
